package com.rd.teacher.jichao.day19;

import com.rd.teacher.jichao.day19.coffee.MeiShi;
import com.rd.teacher.jichao.day19.coffee.NaTie;
import com.rd.teacher.jichao.day19.decorator.Milk;
import com.rd.teacher.jichao.day19.decorator.Sugar;
//import com.zrrd.day19.coffee.MeiShi;
//import com.zrrd.day19.coffee.NaTie;
//import com.zrrd.day19.decorator.Milk;
//import com.zrrd.day19.decorator.Sugar;

public class Test {

    public static void main(String[] args) {
        Drink coffee = new NaTie();
        System.out.println(coffee.getDesc());
//        System.out.println(coffee.getPrice());
        System.out.println(coffee.cost());

        System.out.println("-----");
        Decorator milk = new Milk(coffee);
        System.out.println(milk.cost());
        System.out.println(milk.getDesc());

        System.out.println("-----");
        Drink coffee1 = new MeiShi();
        System.out.println(coffee1.getDesc());
        System.out.println(coffee1.cost());

        System.out.println("-----");
        Decorator order = new Sugar(coffee1);
        System.out.println(order.getDesc());
        System.out.println(order.cost());

    }
}
